<!DOCTYPE html>

<html lang="en" data-content_root="../../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

    <title>Maestro decoder sample &#8212; Maestro on Zephyr  documentation</title>
    <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=d1102ebc" />
    <link rel="stylesheet" type="text/css" href="../../_static/basic.css?v=686e5160" />
    <link rel="stylesheet" type="text/css" href="../../_static/alabaster.css?v=27fed22d" />
    <script src="../../_static/documentation_options.js?v=5929fcd5"></script>
    <script src="../../_static/doctools.js?v=9bcbadda"></script>
    <script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="next" title="Maestro encoder sample" href="../encoder/README.html" />
    <link rel="prev" title="Maestro voice detection sample using VIT" href="../../samples/record_vit/README.html" />
   
  <link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
  

  
  

  </head><body>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  <section id="maestro-decoder-sample">
<span id="maestro-sample-decoder"></span><h1>Maestro decoder sample<a class="headerlink" href="#maestro-decoder-sample" title="Link to this heading">¶</a></h1>
<section id="description">
<h2>Description<a class="headerlink" href="#description" title="Link to this heading">¶</a></h2>
<p>Tests and demonstrates decoder functionality in Maestro pipeline.</p>
<p>Supported decoders:</p>
<blockquote>
<div><ul class="simple">
<li><p>MP3</p></li>
<li><p>WAV</p></li>
<li><p>AAC</p></li>
<li><p>FLAC</p></li>
<li><p>OPUS with OGG envelop</p></li>
<li><p>(RAW OPUS - TBD)</p></li>
</ul>
</div></blockquote>
<p>Data Input:</p>
<blockquote>
<div><ul class="simple">
<li><p>Prepared encoded audio data (part of Maestro repository, folder <code class="docutils literal notranslate"><span class="pre">zephyr/audioTracks</span></code>)</p></li>
<li><p>Prepared decoded audio data (RAW PCM format, part of Maestro repository, folder <code class="docutils literal notranslate"><span class="pre">zephyr/audioTracks</span></code>)</p></li>
</ul>
</div></blockquote>
<p>Function:</p>
<blockquote>
<div><ol class="arabic simple">
<li><p>Loads encoded data into source buffer stored in RAM</p></li>
<li><p>Decodes audio data using selected decoder and stores data in RAM</p></li>
<li><p>Compares prepared data with decoded data to check if its the same</p></li>
<li><p>Prints <code class="docutils literal notranslate"><span class="pre">Demo</span> <span class="pre">result:</span> <span class="pre">OK</span></code> or <code class="docutils literal notranslate"><span class="pre">Demo</span> <span class="pre">result:</span> <span class="pre">FAIL</span></code> via UART</p></li>
</ol>
</div></blockquote>
</section>
<section id="user-input-output">
<h2>User Input/Output<a class="headerlink" href="#user-input-output" title="Link to this heading">¶</a></h2>
<blockquote>
<div><ul>
<li><p>Input:</p>
<blockquote>
<div><p>None</p>
</div></blockquote>
</li>
<li><p>Output:</p>
<blockquote>
<div><p>UART Output</p>
<blockquote>
<div><ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">Demo</span> <span class="pre">result:</span> <span class="pre">OK</span></code> if everything went OK</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">Demo</span> <span class="pre">result:</span> <span class="pre">FAIL</span></code> otherwise</p></li>
</ul>
</div></blockquote>
</div></blockquote>
</li>
</ul>
</div></blockquote>
</section>
<section id="dependencies">
<h2>Dependencies<a class="headerlink" href="#dependencies" title="Link to this heading">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li><p>Audio voice component library (pulled in by Maestro’s west), containing Decoder libraries</p></li>
</ul>
</div></blockquote>
</section>
<section id="configuration">
<h2>Configuration<a class="headerlink" href="#configuration" title="Link to this heading">¶</a></h2>
<blockquote>
<div><ul>
<li><p>See <code class="docutils literal notranslate"><span class="pre">prj.conf</span></code> for user input sections</p>
<blockquote>
<div><ul class="simple">
<li><p>Selecting decoder may be done by enabling <code class="docutils literal notranslate"><span class="pre">CONFIG_MAESTRO_EXAMPLE_DECODER_SELECTED_&lt;DECODER_NAME&gt;</span></code> in <code class="docutils literal notranslate"><span class="pre">prj.conf</span></code> file. When no decoder is selected, default one (WAV) is used instead.</p></li>
<li><p>System settings should be modified (stack size, heap size) based on selected decoder and system capabilities/requirements in <code class="docutils literal notranslate"><span class="pre">prj.conf</span></code>.</p></li>
</ul>
</div></blockquote>
</li>
<li><p>For other configuration options, see example’s <code class="docutils literal notranslate"><span class="pre">Kconfig</span></code> and <code class="docutils literal notranslate"><span class="pre">prj.conf</span></code>.</p></li>
</ul>
</div></blockquote>
</section>
<section id="supported-platforms">
<h2>Supported platforms<a class="headerlink" href="#supported-platforms" title="Link to this heading">¶</a></h2>
<p>Currently tested for:</p>
<blockquote>
<div><ul class="simple">
<li><p>RD_RW612_BGA - Working decoders: FLAC, WAV, OPUS OGG</p></li>
</ul>
</div></blockquote>
</section>
</section>


          </div>
          
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="Main">
        <div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="../../README.html">Maestro on Zephyr</a></h1>









<search id="searchbox" style="display: none" role="search">
    <div class="searchformwrapper">
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script><h3>Navigation</h3>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../README.html">Maestro on Zephyr</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../samples/record_ram/README.html">Record sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../samples/record_vit/README.html">VIT sample</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Decoder sample</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#description">Description</a></li>
<li class="toctree-l2"><a class="reference internal" href="#user-input-output">User Input/Output</a></li>
<li class="toctree-l2"><a class="reference internal" href="#dependencies">Dependencies</a></li>
<li class="toctree-l2"><a class="reference internal" href="#configuration">Configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="#supported-platforms">Supported platforms</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../encoder/README.html">Encoder sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="../memToMem/README.html">Mem2mem sample</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="../../README.html">Documentation overview</a><ul>
      <li>Previous: <a href="../../samples/record_vit/README.html" title="previous chapter">Maestro voice detection sample using VIT</a></li>
      <li>Next: <a href="../encoder/README.html" title="next chapter">Maestro encoder sample</a></li>
  </ul></li>
</ul>
</div>








        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &#169;2024.
      
      |
      Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
      &amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>
      
      |
      <a href="../../_sources/tests/decoder/README.rst.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>